gtkwindow: Use default size even if not resizable
authorOlivier Fourdan <ofourdan@redhat.com>
Wed, 2 Mar 2016 10:10:29 +0000 (11:10 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Thu, 3 Mar 2016 08:13:32 +0000 (09:13 +0100)
commit0f9547258106c33b9ebf6e13b6b43df013f537ac
treea4da219d15fae6b54d16b33c4f922aa62a46bc68
parent7eb9f5f8ef13f7fa8322fa5a6be461aa7f158c69
gtkwindow: Use default size even if not resizable

If a window is not resizable (with gtk_window_set_resizable ()),
the size given with gtk_window_set_default_size() is ignored.

The solution to this would be to use gtk_widget_set_size_request() but
that's a GtkWidget API and therefore does not take into account the
client side decorations when in use with GtkWindow.

Refactor the code so that gtk_window_set_default_size() (which is a
GtkWindow API) gives the expected result on non-resizable windows as
well.

bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=762974
gtk/gtkwindow.c